package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 引导页对象 app_banners
 *
 * @author ruoyi
 * @date 2023-03-30
 */
public class AppBanners extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 状态，0：正常，1：冻结
     */
    @Excel(name = "状态，0：正常，1：冻结")
    private Long state;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String address;

    @TableField(exist = false)
    private Boolean enable;

    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Long getState() {
        return state;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("state", getState())
                .append("address", getAddress())
                .toString();
    }

    /**
     * 获取
     *
     * @return enable
     */
    public Boolean getEnable() {
        return enable;
    }

    /**
     * 设置
     *
     * @param enable
     */
    public void setEnable(Boolean enable) {
        this.enable = enable;
    }


}
